package main

import "fmt"
type Person struct {
	id int
	name string
	idCard string
}
func main() {



	var mapDemo = map[string]int{"1":1}
	mapDemo = make(map[string]int)
	mapDemo["chris"] =20
	mapDemo["paul"] = 30


	//获取元素的值
	fmt.Println(mapDemo["1"])

	_,ok := mapDemo["12"]

	value := mapDemo["chris"]

	fmt.Println("获取的数组元素是", value)
	if ok {
		fmt.Println("元素存在")
	} else {
		fmt.Println("元素不存在")
	}



}
